import 'dart:convert';
import 'package:flutter/services.dart';
import '../models/alphabet_model.dart';

class AlphabetRepository {
  Future<List<Alphabet>> loadAlphabets() async {
    final jsonString = await rootBundle.loadString('assets/data/alphabets.json');
    final List<dynamic> jsonList = json.decode(jsonString);
    return jsonList.map((json) => Alphabet.fromJson(json)).toList();
  }
}
